IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'[dbo].[DeleteProductoDepartamento]') AND OBJECTPROPERTY(id, N'IsProcedure') = 1)
	DROP PROCEDURE [dbo].[DeleteProductoDepartamento]
GO

CREATE PROCEDURE [dbo].[DeleteProductoDepartamento]
(
	@IdProducto int,
	@IdDepartamento int
)
AS
BEGIN
	SET NOCOUNT ON

	DELETE FROM [ProductoDepartamento]
	WHERE [IdProducto] = @IdProducto AND [IdDepartamento] = @IdDepartamento

	SET NOCOUNT OFF
END

GO
